package com.tvein.sanguo.room.controller
{
	//flash
	//pureMVC
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.utilities.fabrication.patterns.command.SimpleFabricationCommand;	
	//custom
	import com.tvein.sanguo.Room;
	import com.tvein.sanguo.room.model.SystemProxy;
	import com.tvein.sanguo.room.view.RoomMediator;
	import com.tvein.sanguo.room.view.SystemMediator;
//
	public class RoomStartupCommand extends SimpleFabricationCommand
	{
		override public function execute(note:INotification):void
		{
			var room:Room = note.getBody() as Room;
			
			facade.registerProxy(new SystemProxy());
			
			registerMediator(new SystemMediator(room));
			registerMediator(new RoomMediator(room));
		}
	}
}